home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc19
/
gemfsc19.lzh
/
GEMFBIND
/
AESGRAF2.S
< prev
next >
Wrap
Text File
|
1993-03-26
|
2KB
|
65 lines
;*========================================================================
;*
;* AESFAST Public Domain GEM bindings.
;*
;*========================================================================
;*************************************************************************
;*
;* Graphics Library routines 2 of 5.
;* The 3 routines here are together because graf_mouse and graf_handle
;* are used by virtually every GEM program, and graf_mkstate is avaiable
;* for free because its stack looks the same as graf_handle.
;*
;*************************************************************************
;-------------------------------------------------------------------------
; graf_handle
; graf_mkstate
;-------------------------------------------------------------------------
globl _graf_handle
_graf_handle:
move.l #$4D000500,d0 ; AControl 77,0,5,0
bra.b graf_hndstate
globl _graf_mkstate
_graf_mkstate:
move.l #$4F000500,d0 ; AControl 79,0,5,0
graf_hndstate:
; .cargs #8,p1.l,p2.l,p3.l,p4.l
p1 = 8
p2 = 12
p3 = 16
p4 = 20
link a6,#-10
moveq.l #-10,d1 ; = intout
jsr aes_call
moveq.l #-10,d1
lea p1(a6),a1
jmp (a0)
;-------------------------------------------------------------------------
; graf_mouse
;-------------------------------------------------------------------------
globl _graf_mouse
_graf_mouse:
; .cargs #4,num,pform.l
num = 4
pform = 6
move.l #$4E010101,d0 ; AControl 78,1,1,1
lea num(sp),a1 ; -> intin
lea pform(sp),a0 ; -> adrin
jmp aes_do
; end of code